//
//  CourseCycleTableViewCell.m
//  TeacherNet
//
//  Created by slz on 2017/11/21.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import "CourseCycleTableViewCell.h"

@implementation CourseCycleTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self)
    {
        _courseTitle = [UILabel new];
        _courseTitle.textColor = kDark_TextColor_Default;
        _courseTitle.fontSize = 17;
        [self.contentView addSubview:_courseTitle];
        [_courseTitle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.mas_equalTo(18);
            make.top.mas_equalTo(15);
            make.right.mas_equalTo(self.contentView.mas_right).offset(-18);
        }];
        
        _courseType = [UILabel new];
        _courseType.textColor = kLight_TextColor_Default;
        _courseType.fontSize = 15;
        [self.contentView addSubview:_courseType];
        [_courseType mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(40);
            make.right.mas_equalTo (-18);
            make.bottom.mas_equalTo(-15);
        }];
        
        UIView * line = [UIView quickLineColorView];
        [self.contentView addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.and.bottom.mas_equalTo(self.contentView);
            make.height.mas_equalTo(.5);
        }];
    }
    return self;
}

@end
